﻿
using Abp.Auditing;
using AutoMapper;
using MyCompanyName.AbpZeroTemplate.Auditing.Dto;

namespace LZ.DCode.CustomDtoAutoMapper
{

	/// <summary>
    /// 配置Auditlog的AutoMapper映射
	/// 前往 <see cref="DCodeApplicationModule"/>的AbpAutoMapper配置方法下添加以下代码段
    /// AuditlogDtoAutoMapper.CreateMappings(configuration);
    /// </summary>
	internal static class AuditlogDtoAutoMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap <AuditLog,AuditLogListDto>();
            configuration.CreateMap <AuditLogListDto, AuditLog>();

            configuration.CreateMap <AuditLogListDto, AuditLog>();
            configuration.CreateMap <AuditLog, AuditLogListDto>();

        }
	}
}

